import java.util.ArrayList;


public class Year {
	int year;
	ArrayList<Month> months;
	public Year(int theYear){
		year = theYear;
		months.add(new Month(31, 0));//Jan
		if (year%(400) == 0){
			months.add(new Month(29, 1));//Feb
		}
		else if (year%(100) == 0){
			months.add(new Month(28,1));
		}
		else if (year%(4) == 0){
			months.add(new Month(29,1));
		}
		else{
			months.add(new Month(28,1));
		}
		months.add(new Month(31, 2));//Mar
		months.add(new Month(30, 3));//Apr
		months.add(new Month(31, 4));//May
		months.add(new Month(30, 5));//Jun
		months.add(new Month(31, 6));//Jul
		months.add(new Month(31, 7));//Aug
		months.add(new Month(30, 8));//Sep
		months.add(new Month(31, 9));//Oct
		months.add(new Month(30, 10));//Nov
		months.add(new Month(31, 11));//Dec
		
	}
	public ArrayList<Month> getMonths(){
		return months;
	}
	public int getYear(){
		return year;
	}
}
